package main

import (
	"fmt"

	"github.com/duke-git/lancet/v2/cryptor"
)

// lancet包的使用
// https://github.com/duke-git/lancet/blob/main/README_zh-CN.md
func main() {
	data := "abcde"
	key := "mykey12345678901"
	encrypted := cryptor.AesCbcEncrypt([]byte(data), []byte(key))
	decrypted := cryptor.AesCbcDecrypt(encrypted, []byte(key))
	fmt.Println(string(decrypted))

}
